<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<html>
	<head>
		<style type="text/css">
			img{
				display:none;
			}
		</style>
	</head>
	<body>
		<input type="file" size="20" autocomplete="off" id="upload_img" name="Uploadfile">
		<div>
			sdfasdf
		</div>
		<script type="text/javascript">
			var img = document.getElementById("upload_img");
			console.log(MyTest);
			var reader = new FileReader();
			reader.readAsDataURL(img);
			reader.onload = function(theFile) {
				var image = new Image();
				image.src = theFile.target.result;
		   		image.onload = function() {
		   			alert("图片的宽度为"+this.width+",长度为"+this.height);
		   		};
			};
		</script>
	</body>
</html>